package org.graduation.recruitment.entity.pojo.resume;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.Date;

/**
 * 实习经验，Resume类的成员
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("resume_internship_experience")
public class InternshipExperience implements ResumeModel {
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long id;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long resumeId;
    @JsonSerialize(using = ToStringSerializer.class)
    private Long studentId;
    private String enterpriseName;
    // 实习岗位
    private String position;
    private String description;
    private Date startTime;
    // 没有endTime就是至今
    private Date endTime;
}
